package com.study.app.domain.bo;

import com.study.common.core.validate.AddGroup;
import com.study.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.study.common.core.domain.BaseEntity;

/**
 * App图片管理业务对象 app_image
 *
 * @author study
 * @date 2024-05-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppImageBo extends BaseEntity {
    public static final int NORMAL = 1;
    public static final int FORBIDDEN = 0;

    //类型：我的背景图
    public static final int BACKGROUND = 0;

    /**
     * app图片ID
     */
    @NotNull(message = "app图片ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 图片类型：0我的背景图
     */
    @NotNull(message = "图片类型：0我的背景图不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer imageType;

    /**
     * 图片标签
     */
    @NotBlank(message = "图片标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imageTag;

    /**
     * 状态：0禁用，1正常
     */
    @NotNull(message = "状态：0禁用，1正常不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imageUrl;

    /**
     * 上传时间
     */
    private Date uploadTime;


}
